/*
 * @Author: 彭林
 * @Date: 2021-05-14 15:15:12
 * @LastEditTime: 2021-07-01 15:21:21
 * @LastEditors: 彭林
 * @Description:
 * @FilePath: /src/saas-app/app/api/v1/districts.go
 */
package v1

import (
	"saas-app/app/service"
	"saas-app/library/response"

	"github.com/gogf/gf/net/ghttp"
)

func GetDistrictsList(r *ghttp.Request) {
	parent_id := r.GetUint("parent_id")
	result := service.DistrictsService().GetDistrictsList(parent_id)
	response.JsonExit(r, 0, "ok", result)
}
